Skip to content

remove two fields from goto-binary function format #3113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 4, 2019

Conversation

kroening
Copy link
Member

@kroening kroening commented Oct 7, 2018

This removes the name of the function in every instruction (it's known from
the function that's being read), and an unused field. This also increases
version number of goto binary format to 5.

  • Each commit message has a non-empty body, explaining why the change was made.
  • My contribution is formatted in line with CODING_STANDARD.md.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@@ -97,11 +97,9 @@ bool write_goto_binary_v4(
const goto_programt::instructiont &instruction = *i_it;

irepconverter.reference_convert(instruction.code, out);
irepconverter.write_string_ref(out, instruction.function);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we are there just yet: this should only be done once we have sanity checks of goto programs in place, and those ensure that fct.first == instruction.function, which I doubt truly holds at the moment.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, #3126!

@tautschnig tautschnig changed the title remove two fields from goto-binary function format remove two fields from goto-binary function format [depends-on: #3126] Jan 18, 2019
tautschnig added a commit that referenced this pull request Feb 4, 2019
remove goto_programt::instructiont::function member [blocks: #3113]
@tautschnig tautschnig changed the title remove two fields from goto-binary function format [depends-on: #3126] remove two fields from goto-binary function format Feb 4, 2019
@tautschnig tautschnig force-pushed the goto-binary-v5 branch 2 times, most recently from a180b04 to 0d91a71 Compare February 4, 2019 18:35
@tautschnig tautschnig assigned tautschnig and unassigned kroening Feb 4, 2019
This removes the name of the function in every instruction (it's known from
the function that's being read), and an unused field. This also increases
version number of goto binary format to 5.
Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️
Passed Diffblue compatibility checks (cbmc commit: 3a84988).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/99687290

@tautschnig tautschnig merged commit 39174a6 into develop Feb 4, 2019
@tautschnig tautschnig deleted the goto-binary-v5 branch February 4, 2019 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants